/*
 * =====================================================================================
 *
 *       Filename:  constraintSet.cpp
 *
 *    Description:  Implementation of constraint set class
 *
 *        Version:  1.0
 *        Created:  20/07/12 14:58:06
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Moos Hueting (mh), mooshueting@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#include <stdlib.h>
#include "constraintSet.h"

float ConstraintSet::getError(Mat src) {
    float error = 0;

    for (unsigned int i = 0; i < constraints.size(); i++)
        error += constraints.at(i).getError(src);

    return error;
}

/* void ConstraintSet::printErrors(Mat src) {
 *     // prints the 
 *     for (unsigned int i = 0; i < constraints.size(); i++) {
 * 
 *     }
 * 
 * }
 */
